﻿<phone:PhoneApplicationPage
    x:Class="HomeBuyerTools.Views.Estmatedsalesprice"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:tookit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Orientation="Horizontal" Margin="0,0,0,0">
            <Image x:Name="imgTitle" Width="71" Height="71" HorizontalAlignment="Left" MouseEnter="imgTitle_MouseEnter" Style="{StaticResource PovitTitle}"/>
            <TextBlock x:Name="tblkhyphen" Text="-" Margin="0,-20,5,0" FontSize="74" Foreground="White"/>
            <TextBlock Text="Estimated Sales Price" Margin="0,15,0,0" Width="365" FontFamily="Comic Sans MS" Foreground="Red" FontSize="28" FontWeight="Bold" TextWrapping="NoWrap"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <TextBlock x:Name="tblPeriodTime" Visibility="Collapsed" Grid.Row="0"  Text="Expensive Name"   FontSize="20" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <TextBlock x:Name="tblTotalSalePrice" Visibility="Collapsed" Grid.Row="1"  Text="Total Sale Price"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <StackPanel x:Name="stackExp" Visibility="Collapsed" Orientation="Horizontal" Grid.Row="2">
                <TextBox  x:Name="txtTotalSalePrice" Background="White" Text="2000" InputScope="TelephoneNumber" Width="400">
                </TextBox>
                <TextBlock x:Name="tblgapExp"  FontSize="32"  Margin="0,12,0,0" Foreground="White"></TextBlock>
            </StackPanel>
            <TextBlock x:Name="tblHouseCost" Visibility="Collapsed"  Grid.Row="3"  Text="House Cost"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <StackPanel x:Name="stackHouseCost" Visibility="Collapsed" Orientation="Horizontal" Grid.Row="4">
                <TextBox  x:Name="HouseCost" Background="White" Text="800" InputScope="TelephoneNumber" Width="400" ></TextBox>
                <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
            </StackPanel>
            <TextBlock x:Name="tblReg"  Grid.Row="5"  Text="Registration Date"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <!--<Button x:Name="btnAdd" HorizontalAlignment="Left" Content="Save" Width="400" Click="Save_click" Grid.Row="40"/>-->
            <tookit:DatePicker x:Name="REg" Background="White" Width="400" HorizontalAlignment="Left" Value="2/3/2012" Grid.Row="6" ValueChanged="REg_ValueChanged_1"/>
            <TextBlock x:Name="tblAgentCommission"  Grid.Row="7"  Text="Agent Commission"   FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <StackPanel x:Name="stackcommission" Grid.Row="8" Orientation="Horizontal">
             <TextBox  x:Name="txtCommission" MouseLeave="txtCommission_MouseLeave_1"  Background="White" Text="2" InputScope="TelephoneNumber" Width="120" ></TextBox>
                <TextBlock  FontSize="32" Text="%" Margin="0,12,0,0" Foreground="White"></TextBlock>
                <TextBox  x:Name="txtTotalPrice"   Background="White"  InputScope="TelephoneNumber" Width="250" ></TextBox>
                <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
            </StackPanel>
            <TextBlock x:Name="tblAgentCommissionandhouseprice"  Grid.Row="9"  Text="% X Total Sale Price" FontSize="25" Margin="8,0,0,0" Foreground="White"></TextBlock>
            <StackPanel x:Name="stackAhentCommision" Orientation="Horizontal" Grid.Row="10">
                <TextBox  x:Name="txtAgentCommissionandhouseprice" Background="White"  InputScope="TelephoneNumber" Width="400" ></TextBox>
                <TextBlock  FontSize="32" Text="$" Margin="0,12,0,0" Foreground="White"></TextBlock>
            </StackPanel>
        </Grid>
    </Grid>
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">

            <shell:ApplicationBarIconButton IconUri="/Images/Calculator.png" x:Name="AppBarSaveData" Text="Calculate"  Click="AppBarSaveData_Click"/>

            <!--- <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>-->
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>
</phone:PhoneApplicationPage>